<template>
  <div class="todayContent">
    <text>{{ content }}</text>
    <div class="share d-flex flex-end">
      <button open-type="share" id="share-today-words-detail">
        <i class="iconfont icon-weixin"></i>
      </button>
    </div>
    <ad unit-id="adunit-98d66e99291778e5"></ad>
  </div>
</template>
<script>
export default {
  data () {
    return {
      content: ''
    }
  },
  mounted () {
    wx.showLoading({
      title: '加载中'
    })
    this.content = wx.getStorageSync('todayWords')
    wx.hideLoading()
  },
  onShareAppMessage () {
    return {
      title: '今日良言',
      path: '/pages/index/main'
    }
  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>
.todayContent {
  padding: 0 10px;
  p {
    text-align: justify;
  }
  .share {
    margin: 10px 0;
  }
}
</style>

